﻿/**/

using System;
using System.Collections.Generic;
using System.Text;

namespace TAC
{
	class PlayerCharacter : NonPlayerCharacter, Character
	{
		/*--------------------------------------------------------------------------------------------------------*/
		/*:::[FIELDS]:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
		/*--------------------------------------------------------------------------------------------------------*/

		//picture
		String name;

		/*--------------------------------------------------------------------------------------------------------*/
		/*:::[CONSTRUCTORS]:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
		/*--------------------------------------------------------------------------------------------------------*/

		public PlayerCharacter() {/*empty*/}

		/*--------------------------------------------------------------------------------------------------------*/
		/*:::[GETTERS]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
		/*--------------------------------------------------------------------------------------------------------*/

		public String getName()
		{
			return name;
		}

		/*--------------------------------------------------------------------------------------------------------*/
		/*:::[SETTERS]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
		/*--------------------------------------------------------------------------------------------------------*/

		public void setName(String name)
		{
			this.name = name;
		}

		/*--------------------------------------------------------------------------------------------------------*/
		/*:::[OTHER]::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
		/*--------------------------------------------------------------------------------------------------------*/

		//preconditions: strenght <= id <= intelligence || id = experience
		public void upAttribute(int id, int increment)
		{
			setAttribute(id, getAttribute(id) + increment);
		}

		//preconditions: strenght <= id <= intelligence || id = experience
		public void downAttribute(int id, int decrement)
		{
			setAttribute(id, getAttribute(id) - decrement);
		}
	}
}
